﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DCCMS.Model
{
    /// <summary>
    /// 频道实体类封装
    /// </summary>
    [Serializable]
    public class Channel
    {
        public Channel()
		{}
		#region Model
		private int _channelid;
		private string _channelname;
		private int _channelindex;
		private int _channelparentid = 0;
		private string _channelurl = "#";
		private bool _channelisdisplay = false;
		private DateTime _createdate;
		private DateTime? _disabledate;
		/// <summary>
		/// 
		/// </summary>
		public int ChannelID
		{
			set{ _channelid=value;}
			get{return _channelid;}
		}
		/// <summary>
		/// 频道名称
		/// </summary>
		public string ChannelName
		{
			set{ _channelname=value;}
			get{return _channelname;}
		}
		/// <summary>
		/// 频道顺序
		/// </summary>
		public int ChannelIndex
		{
			set{ _channelindex=value;}
			get{return _channelindex;}
		}
		/// <summary>
		/// 父频道ID
		/// </summary>
		public int ChannelParentID
		{
			set{ _channelparentid=value;}
			get{return _channelparentid;}
		}
		/// <summary>
		/// 频道URL，默认值：#
		/// </summary>
		public string ChannelURL
		{
			set{ _channelurl=value;}
			get{return _channelurl;}
		}
		/// <summary>
		/// 是否前台显示  0：不显示（默认） 1：显示
		/// </summary>
		public bool ChannelIsDisplay
		{
			set{ _channelisdisplay=value;}
			get{return _channelisdisplay;}
		}
		/// <summary>
		/// 创建日期
		/// </summary>
		public DateTime CreateDate
		{
			set{ _createdate=value;}
			get{return _createdate;}
		}
		/// <summary>
		/// 禁用（不在前台显示）日期
		/// </summary>
		public DateTime? DisableDate
		{
			set{ _disabledate=value;}
			get{return _disabledate;}
		}
		#endregion Model
    }
}
